<?xml version="1.0" encoding="UTF-8" ?>
<?oracle-xsl-mapper
  <!-- SPECIFICATION OF MAP SOURCES AND TARGETS, DO NOT MODIFY. -->
  <mapSources>
    <source type="WSDL">
      <schema location="../../../Servicios%20Web/swObtenerGrillaDocumento/obtenerGrillaDocumentosDA.wsdl"/>
      <rootElement name="OutputParameters" namespace="http://xmlns.oracle.com/pcbpel/adapter/db/sp/obtenerGrillaDocumentosDA"/>
    </source>
  </mapSources>
  <mapTargets>
    <target type="WSDL">
      <schema location="../../../Servicios%20Web/swObtenerGrillaDocumento/swObtenerGrillaDocumento.wsdl"/>
      <rootElement name="OBTENERGRILLADOCUMENTOMR" namespace="http://mincetur.gob.pe/SIC/utilitarios/obtenerGrillaDocumento"/>
    </target>
  </mapTargets>
  <!-- GENERATED BY ORACLE XSL MAPPER 11.1.1.6.0(build 111214.0600.1553) AT [TUE APR 02 16:06:54 COT 2013]. -->
?>
<xsl:stylesheet version="1.0"
                xmlns:xp20="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.Xpath20"
                xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/"
                xmlns:bpel="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
                xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                xmlns:db="http://xmlns.oracle.com/pcbpel/adapter/db/sp/obtenerGrillaDocumentosDA"
                xmlns:bpm="http://xmlns.oracle.com/bpmn20/extensions"
                xmlns:ns0="http://mincetur.gob.pe/SIC/utilitarios/errorMR"
                xmlns:plt="http://schemas.xmlsoap.org/ws/2003/05/partner-link/"
                xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
                xmlns:ora="http://schemas.oracle.com/xpath/extension"
                xmlns:socket="http://www.oracle.com/XSL/Transform/java/oracle.tip.adapter.socket.ProtocolTranslator"
                xmlns:client="http://mincetur.gob.pe/SIC/utilitarios/swObtenerGrillaDocumento"
                xmlns:mhdr="http://www.oracle.com/XSL/Transform/java/oracle.tip.mediator.service.common.functions.MediatorExtnFunction"
                xmlns:oraext="http://www.oracle.com/XSL/Transform/java/oracle.tip.pc.services.functions.ExtFunc"
                xmlns:ns1="http://mincetur.gob.pe/SIC/utilitarios/obtenerGrillaDocumento"
                xmlns:dvm="http://www.oracle.com/XSL/Transform/java/oracle.tip.dvm.LookupValue"
                xmlns:hwf="http://xmlns.oracle.com/bpel/workflow/xpath"
                xmlns:med="http://schemas.oracle.com/mediator/xpath"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns:ids="http://xmlns.oracle.com/bpel/services/IdentityService/xpath"
                xmlns:xdk="http://schemas.oracle.com/bpel/extension/xpath/function/xdk"
                xmlns:xref="http://www.oracle.com/XSL/Transform/java/oracle.tip.xref.xpath.XRefXPathFunctions"
                xmlns:xsd="http://www.w3.org/2001/XMLSchema"
                xmlns:bpmn="http://schemas.oracle.com/bpm/xpath"
                xmlns:tns="http://xmlns.oracle.com/pcbpel/adapter/db/Servicios+Web/swObtenerGrillaDocumento/obtenerGrillaDocumentosDA"
                xmlns:ldap="http://schemas.oracle.com/xpath/extension/ldap"
                exclude-result-prefixes="xsi xsl db plt wsdl xsd tns ns0 client ns1 xp20 bpws bpel bpm ora socket mhdr oraext dvm hwf med ids xdk xref bpmn ldap">
  <xsl:template match="/">
    <ns1:OBTENERGRILLADOCUMENTOMR>
      <ns1:GRILLADOCUMENTO>
        <xsl:for-each select="/db:OutputParameters/db:X_CURSOR/db:X_CURSOR_Row">
          <ns1:REGISTRODOCUMENTO>
            <xsl:if test="db:ID_DOCU">
              <xsl:attribute name="ID_DOCU">
                <xsl:value-of select="db:ID_DOCU"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:ID_PERSCREADOR">
              <xsl:attribute name="ID_PERSCREADOR">
                <xsl:value-of select="db:ID_PERSCREADOR"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:DES_ESTADOCU">
              <xsl:attribute name="DES_ESTADOCU">
                <xsl:value-of select="db:DES_ESTADOCU"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:ID_TIPODOCU">
              <xsl:attribute name="ID_TIPODOCU">
                <xsl:value-of select="db:ID_TIPODOCU"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:ID_STIPODOCU">
              <xsl:attribute name="ID_STIPODOCU">
                <xsl:value-of select="db:ID_STIPODOCU"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:DES_TITULO">
              <xsl:attribute name="DES_TITULO">
                <xsl:value-of select="db:DES_TITULO"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:FEC_DESDE">
              <xsl:attribute name="FEC_DESDE">
                <xsl:value-of select="db:FEC_DESDE"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:FEC_HASTA">
              <xsl:attribute name="FEC_HASTA">
                <xsl:value-of select="db:FEC_HASTA"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:COD_DOCUBINA">
              <xsl:attribute name="COD_DOCUBINA">
                <xsl:value-of select="db:COD_DOCUBINA"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:FEC_CREACION">
              <xsl:attribute name="FEC_CREACION">
                <xsl:value-of select="db:FEC_CREACION"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:DES_LOCAURI">
              <xsl:attribute name="DES_LOCAURI">
                <xsl:value-of select="db:DES_LOCAURI"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:DES_NOMBREAL">
              <xsl:attribute name="DES_NOMBREAL">
                <xsl:value-of select="db:DES_NOMBREAL"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:ID_EXTEDOCU">
              <xsl:attribute name="ID_EXTEDOCU">
                <xsl:value-of select="db:ID_EXTEDOCU"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:COD_EXTEDOCU">
              <xsl:attribute name="COD_EXTEDOCU">
                <xsl:value-of select="db:COD_EXTEDOCU"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:ACCION">
              <xsl:attribute name="ACCION">
                <xsl:value-of select="db:ACCION"/>
              </xsl:attribute>
            </xsl:if>
            <xsl:if test="db:OPCION">
              <xsl:attribute name="OPCION">
                <xsl:value-of select="db:OPCION"/>
              </xsl:attribute>
            </xsl:if>
          </ns1:REGISTRODOCUMENTO>
        </xsl:for-each>
      </ns1:GRILLADOCUMENTO>
      <ns1:ERROR>
        <xsl:attribute name="ID_ERROR">
          <xsl:value-of select="/db:OutputParameters/db:X_ID_ERROR"/>
        </xsl:attribute>
        <xsl:attribute name="DES_ERROR">
          <xsl:value-of select="/db:OutputParameters/db:X_DES_ERROR"/>
        </xsl:attribute>
        <xsl:attribute name="FEC_ERROR">
          <xsl:value-of select="/db:OutputParameters/db:X_FEC_ERROR"/>
        </xsl:attribute>
      </ns1:ERROR>
    </ns1:OBTENERGRILLADOCUMENTOMR>
  </xsl:template>
</xsl:stylesheet>
